<?php
/*
+ ---------------------------------------------------------------------- +
| e107Shop - An e-commerce plugin for the e107 content management system |
|                                                                        |
| ByOrder Europe 2007-2008                                               |
| http://e107shop.com                                                    |
| patrick@byorder.nl                                                     |
|                                                                        |
| Released under the terms and conditions of the LGPL                    |
|                                                                        |
| $Revision: 1.0                                                         |
| $Date: 2008/08/20                                                      |
| $Author: Bieleke                                                       |
+ ---------------------------------------------------------------------- +
*/

require("../db_names.php");
if (!defined('E107SHOP')) require('../e107shop_folder.php');
require("../library/settings_class.php");
require("admin_product_class.php");
require("admin_category_class.php");
require("admin_settings_class.php");
require("admin_attributes_class.php");
require("admin_coupon_class.php");
require("admin_regions_class.php");
require("admin_orders_class.php");
require("admin_gateway_class.php");
require("../library/order_handler.php");
require("../library/products_class.php");
require("../library/cart_class.php");
require("../library/checkout_class.php");
require("../library/payment_class.php");
require("../library/calculate_class.php");
require("../library/download_handler.php");
require("../library/outbound_email_text.php");
require("admin_functions_class.php");
require("admin_content_class.php");

global $sql, $e107shop_db_name;

// Load the global shop settings

$sql->db_Select($e107shop_db_name["settings"], "*", "");
while ($row=$sql->db_Fetch()) {
    $shop_settings = $row;
}

$sql->db_Select($e107shop_db_name["advanced"], "*", "");
while ($row=$sql->db_Fetch()) {
    $shop_settings[$row['tblkey']] = $row['tblvalue'];
}

// Add extra valuable information
$shop_settings['path'] = str_replace(e_PAGE, "", e_SELF);

include("../languages/".e_LANGUAGE.".php");
